package com.ym.b2b.upload.controller;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ym.b2b.commons.controller.BaseController;
import com.ym.b2b.upload.service.EmBUploadService;
import com.ym.b2b.upload.sqlbean.EmBUpload;
import com.zc.commons.base.Page;
import com.zc.commons.base.Result;

/**
 * @ClassName: UploadController
 * @Description: TODO
 * @Author tangxj
 * @Date 2015-4-13 下午4:28:29
 * @Modify
 * @CopyRight B2B小组
 */
@Controller
@RequestMapping("/upload")
public class UploadController extends BaseController {

    @Autowired
    private EmBUploadService    emBUploadService;

    // 上传参数
    private Map<String, String> uploadParams;

    // 列表查询

    @RequestMapping("searchPageEmBUpload.s")
    @ResponseBody
    public Result searchPageEmBUpload(EmBUpload emBUpload, Page<EmBUpload> page, HttpServletRequest req) {
        Result result = new Result();
        result = emBUploadService.searchPageEmBUpload(emBUpload, page);
        return result;
    }

}
